package org.correct.model;

import java.util.Calendar;

public class PageInfoItem {
	public static enum InfoType {
		id, url, encoding, title, fetchTime, pageRank, termCount
	}
	
	public int id;
	public String url;
	public String encoding;
	public Calendar fetchTime;	// actually it should be modify time
	public String title;
	public double pageRank;
	public int termCount;
	
	public PageInfoItem() {
	}
	
	public double getPageRank(){
		return this.pageRank;
	}
	
	public PageInfoItem clone() {
		PageInfoItem item = new PageInfoItem();
		
		item.id = id;
		item.url = url;
		item.encoding = encoding;
		item.title = title;
		item.fetchTime = fetchTime;
		item.pageRank = pageRank;
		item.termCount = termCount;
		
		return item;
	}
}
